package cn.always.xiajia.admin.client.api.sys.dto;

import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Schema(description = "管理后台-登录中心 Response 返回")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true) // set返回对象
public class AuthLoginRespVO {

	@Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "666")
	private Long userId;

	@Schema(description = "用户编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
	protected String userCode;

	@Schema(description = "用户名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "xj")
	protected String userName;

	@Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
	protected String userType;

	@Schema(description = "访问令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "test")
	private String accessToken;

	@Schema(description = "刷新令牌", requiredMode = Schema.RequiredMode.REQUIRED, example = "SfxxfgfhhjKHJhcckH")
	private String refreshToken;

	@Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
	private LocalDateTime expiresTime;

}
